<?php
	class User extends BaseData {
		private $id; 
		private $name; 
		private $login; 
		private $pass; 
		private $passRo; // password for readonly access
		private $email; 
		private $sendEmail; 
		private $admin; 
		private $connect;
		
		public function User() {
			parent::BaseData();
		}
		
		public function getId(){
			return $this->id;
		}
		
		public function getName(){
			return $this->name;
		}
		
		public function getLogin(){
			return $this->login;
		}
		
		public function getPass(){
			return $this->pass;
		}
		
		public function getPassRo(){
			return $this->passRo;
		}
		
		public function getEmail(){
			return $this->email;
		}
		
		public function isSendEmail(){
			return $this->sendEmail;
		}
		
		public function isAdmin(){
			return $this->admin;
		}
		
		public function isConnect(){
			return $this->connect;
		}
		
		public function setId($val){
			$this->id = $val;
		}
		
		public function setName($val){
			$this->name = $val;
		}
		
		public function setLogin($val){
			$this->login = $val;
		}
		
		public function setPass($val){
			$this->pass = $val;
		}
		
		public function setPassRo($val){
			$this->passRo = $val;
		}

		public function setEmail($val){
			$this->email = $val;
		}
		
		public function setSendEmail($val){
			$this->sendEmail = $val;
		}
		
		public function setAdmin($val){
			$this->admin = $val;
		}
		
		public function setConnect($val){
			$this->connect = $val;
		}
		
		public function copy(User $current){
			$this->id = $current->id; 
			$this->name = $current->name; 
			$this->login = $current->login; 
			$this->pass = $current->pass; 
			$this->passRo = $current->passRo; 
			$this->email = $current->email; 
			$this->sendEmail = $current->sendEmail; 
			$this->admin = $current->admin; 
			$this->connect = $current->connect;
		}
		
	}
?>